package com.panopset.nls;

import java.util.ResourceBundle;

/**
 * msg.properties resource bundle wrapper.
 *
 * @author Karl Dinwiddie
 *
 */
public final class MsgProps {

    /**
     * Resource path.
     */
    private final String rp;

    /**
     *
     * @param rsrcPath Resource path.
     */
    public MsgProps(final String rsrcPath) {
        rp = rsrcPath;
    }

    /**
     *
     * @param key
     *            Key to msg.properties file.
     * @return Value from
     *
     *         <pre>
     * ResourceBundle.getBundle(&quot;msg.properties&quot;).getString(key)
     * </pre>
     *
     *         call.
     */
    public String get(final String key) {
        return ResourceBundle.getBundle(rp).getString(key);
    }
}
